home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
dayquote
/
printdoc.bas
< prev
next >
Wrap
BASIC Source File
|
1995-05-09
|
39KB
|
908 lines
DECLARE SUB PrintDoc (FileName$)
Sub PrintDoc (FileName$)
Open FileName$ For Output As #1
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1, " ─────────── DayQuote ───────────"
Print #1,
Print #1, " (c) 1994, 1995 Freeware Unlimited"
Print #1,
Print #1, " ──────────────────────────────────"
Print #1,
Print #1,
Print #1,
If FileName$ <> "CON" Then Print "Printing documentation to file: "; FileName$
If FileName$ <> "CON" Then Print ".";
Print #1,
Print #1,
Print #1,
Print #1,
Print #1, " Contents"
Print #1, " ──────────────────────────────────────────"
Print #1,
Print #1, " ■ Introduction . . . . . . . . . . . . . 2"
Print #1,
Print #1, " ■ Quote File Structure . . . . . . . . . 3"
Print #1,
Print #1, " ■ Command Line Options . . . . . . . . . 5"
Print #1,
Print #1, " ■ Result Messages . . . . . . . . . . . 8"
Print #1,
If FileName$ <> "CON" Then Print ".";
Print #1, " ──────────────────────────────────────────"
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1, " ╔═════════════════════════════════════════════════╗"
Print #1, " ║ He's dead, Jim. ║"
Print #1, " ║ - Bones ║"
If FileName$ <> "CON" Then Print ".";
Print #1, " ╚═════════════════════════════════════════════════╝"
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
If FileName$ <> "CON" Then Print ".";
Print #1,
If FileName$ <> "CON" Then Print #1, " Page 1"
Print #1, "────────────────────────────────────────────────────────────────────────────"
Print #1, " ■ INTRODUCTION"
Print #1, "────────────────────────────────────────────────────────────────────────────"
Print #1,
Print #1,
Print #1, " ■ What DayQuote Is:"
Print #1,
Print #1, " It is, to be perfectly honest, the first real program I have"
Print #1, " written, and there might exist on some plane programmers who are"
Print #1, " self-important enough to say that even this isn't a real program."
Print #1,
Print #1, " Nevertheless, I think you will enjoy it, and its many options."
Print #1, " Those hypothetical programmers I mentioned earlier might even"
If FileName$ <> "CON" Then Print ".";
Print #1, " take a second glance at its versatile command line options."
Print #1,
Print #1, " All of those options are described below, in their totality."
Print #1, " The text is concise; hence, it might be 'thick' in some places."
Print #1, " Please, though, if you feel justified in your critique of my"
Print #1, " writing - either in the English language or the BASIC language -"
Print #1, " then I would welcome your comments by snail mail."
Print #1,
Print #1,
Print #1, " ■ How It Works:"
Print #1,
Print #1, " It takes what you have typed in following its name on the command"
Print #1, " line and then acts on the information you have given to it."
Print #1, " Several things can take place from there, depending upon what"
Print #1, " you gave to it in the form of 'switches' on the command line."
If FileName$ <> "CON" Then Print ".";
Print #1,
Print #1, " If it encounters '/?' anywhere, it will show the Help Screen,"
Print #1, " then return you to the command line. If it encounters the '/D'"
Print #1, " switch, it will go into an exclusive process similar to the '/?'"
Print #1, " switch, except that it is more comprehensive in every respect."
Print #1, " See the section about Command Line Options for complete details"
Print #1, " on these options, as well as the following ones."
Print #1,
Print #1, " Aside from those switches, there are nine other switches that"
Print #1, " you can use to fully customize the look of your quotes. Two of"
Print #1, " those will control the color of the text frame displayed, and two "
Print #1, " others will determine how wide the frame will be. One of them"
Print #1, " also allows you to place the frame starting at any line on your"
Print #1, " screen, and there is another switch that will clear the screen"
Print #1, " before doing so. Finally, there are three switches to choose"
If FileName$ <> "CON" Then Print ".";
Print #1, " from that will control how the text of the quote is justified"
Print #1, " within the frame; left- or right- or centered."
Print #1,
Print #1,
Print #1, " ■ To Get More Information:"
Print #1,
Print #1, " Type 'DAYQUOTE/$' on the command line and read about how you can"
Print #1, " get free money sent to you, and a whole bunch of other free stuff."
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
Print #1,
If FileName$ <> "CON" Then Print ".";
Print #1,
Print #1,
Print #1,
If FileName$ <> "CON" Then Print #1, " Page 2"
Print #1, "────────────────────────────────────────────────────────────────────────────"
Print #1, " ■ QUOTE FILE STRUCTURE"
Print #1, "────────────────────────────────────────────────────────────────────────────"
Print #1,
Print #1, " ■ Quote file basics:"
Print #1,
Print #1, " What follows between the funky lines is a representative sample"
Print #1, " of a valid quote file."
Print #1,
Print #1, " /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\"
Print #1, " | Four score and seven years ago... |"
If FileName$ <> "CON" Then Print ".";
Print #1, " | ~~Abraham Lincoln |"
Print #1, " | |"
Print #1, " | He's dead, Jim. |"
Print #1, " | ~~Bones |"
Print #1, " | |"
Print #1, " \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/"
Print #1,
Print #1, " The basic philosophy behind it is to try grouping each body of"
Print #1, " text as close as possible. Each distinct quote must be separated"
Print #1, " by a minimum of two carriage returns (Enters), including the one"
Print #1, " at the end of the previous quote's line. The picture again:"
Print #1, " "
Print #1, " /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\"
Print #1, " | Four score and seven years ago... |"
Print #1, " | ~~Abraham Lincoln «» <──────────── carriage return 1 |"
If FileName$ <> "CON" Then Print ".";
Print #1, " | «» <────────────────────────────── carriage return 2 |"
Print #1, " | He's dead, Jim. |"
Print #1, " | ~~Bones |"